package com.zzyl.mapper;


import com.github.pagehelper.Page;
import com.zzyl.entity.NursingPlan;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Description NursingPlanMapper
 * @Author Peng Hongyan
 * @Date 2025-08-30
 */
@Mapper
public interface NursingPlanMapper {



    List<NursingPlan> getAll();

    void addNursingPlan(NursingPlan nursingPlan);

    Page<NursingPlan> getByPage(String planName, Integer status);

    NursingPlan findNursingPlanById(Long id);

    void updateNursingPlan(NursingPlan nursingPlan);

    @Delete("delete from nursing_plan where id = #{id}")
    void deleteNursingPlan(Long id);

    void updateStatus(Long id, Integer status);
}
